import turtle

turtles = list()


def make_square(t):
    for i in range(0, 4):
        t.forward(180)
        t.right(90)


def setup():
    global turtles
    turtle_color = ['green', 'purple', 'red', 'black', 'yellow', 'blue', 'brown', 'cyan', 'orange']
    for i in turtle_color:
        new_turtle = turtle.Turtle()
        new_turtle.shape('turtle')
        new_turtle.pencolor(i)
        new_turtle.width(5)
        turtles.append(new_turtle)


def main():
    global turtles
    setup()
    for i in range(0, len(turtles)):
        turtles[i].right(i * 40)
        make_square(turtles[i])
    turtle.done()

 
main()
